<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>森林火灾监测系统</title>
    <link rel="stylesheet" href="css/index.css"/>
</head>
<body>
<script src="js/echarts.min.js"></script>
<script src="js/socket.io.js"></script>
<!--<script src="js/bundle1.js"></script>-->
<script src="js/index.js"></script>
<!-- server.js这个文件会报错：Uncaught ReferenceError: require is not defined-->
<script src="js/server.js"></script>
<!-- 用browserify方式可以解决，但是会报另一个错误：Uncaught TypeError: Cannot read property 'prototype' of undefined -->
<!--<script src="js/bundle2.js"></script>-->
<script src="js/jquery-3.6.0.js"></script>

<!-- 头部 -->
<header>
    <h1>森林火灾监测系统</h1>
    <div class="showTime">当前时间：0000年00月00-00时00分00秒</div>
    <script>
        var t = null;
        t = setTimeout(time, 1000); //開始运行
        function time() {
            clearTimeout(t); //清除定时器
            dt = new Date();
            var y = dt.getFullYear();
            var mt = dt.getMonth() + 1;
            var day = dt.getDate();
            var h = dt.getHours(); //获取时
            var m = dt.getMinutes(); //获取分
            var s = dt.getSeconds(); //获取秒
            document.querySelector('.showTime').innerHTML =
                '当前时间：' +
                y +
                '年' +
                mt +
                '月' +
                day +
                '日' +
                '-' +
                h +
                '时' +
                m +
                '分' +
                s +
                '秒';
            t = setTimeout(time, 1000); //设定定时器，循环运行
        }
    </script>
</header>

<!-- 主体 -->
<section class="mainbox">
    <div class="column">
        <!--    温湿度监控   -->
        <div class="panel Temp_Hum">
            <h2>温湿度监控</h2>
            <div class="chart"></div>
            <div class="panel-footer"></div>
        </div>
        <!--    烟雾浓度监控  -->
        <div class="panel Smoke">
            <h2>温湿度监控</h2>
            <div class="chart"></div>
            <div class="panel-footer"></div>
        </div>
        <!--    温度分布监控  -->
        <div class="panel Temp">
            <h2>温度分布</h2>
            <div class="chart"></div>
            <div class="panel-footer"></div>
        </div>
        <!--    每天的平均温湿度监控  -->
        <div class="panel Average">
            <h2>日平均温湿度</h2>
            <div class="chart"></div>
            <div class="panel-footer"></div>
        </div>


        <!--        <div class="panel bar1">-->
        <!--            <h2>烟雾浓度</h2>-->
        <!--            <div class="chart"></div>-->
        <!--            <div class="panel-footer"></div>-->
        <!--        </div>-->

    </div>
</section>


</body>
</html>
